package com.Apo1o.exception;

import com.Apo1o.response.ResultCode;

/**
 * @Auther: Apo1o.
 * @Date: 2023/10/25-10-25-14:29
 * @Description： com.Apo1o.exception
 */
public class CustomerException extends RuntimeException{
        private ResultCode resultCode;
public CustomerException(ResultCode resultCode){
        super(resultCode.getMsg());//将信息传给上层的RuntimeException就能捕获到
        this.resultCode=resultCode;
}

        public ResultCode getResultCode() {
                return resultCode;
        }
}
